package wsepForum.network.server.gate;

import wsepForum.domain.Session;
import wsepForum.network.common.ConsoleToken;
import wsepForum.ui.console.ConsoleUIParser;

public class ConsoleUIContoller implements IUIController<ConsoleToken> {

	private ConsoleUIParser uiParser;
	
	public ConsoleUIContoller() {
		this.uiParser = new ConsoleUIParser();
	}
	
	@Override
	public String getRequest(ConsoleToken token, Session session) {
		String response = this.uiParser.parseMessage(token.getData(), session);
		return response;
		
	}

	@Override
	public String getWelcome() {
		String welcome = "Hello Guest! Welcome to WSEP Forum 2009!" +
				"\n\rNew here? Type \"help\" to get you started." +
				"\n\rEnjoy!" +
				"\n\n\r";
		return welcome;
	}

}
